.class Les/cy$e;
.super Ljava/lang/Object;
.source "NewStorageDeviceBlock.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/cy;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "e"
.end annotation


# instance fields
.field private a:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Les/zx;",
            ">;"
        }
    .end annotation
.end field

.field private b:Z

.field final synthetic c:Les/cy;


# direct methods
.method public constructor <init>(Les/cy;Ljava/util/Collection;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Collection<",
            "Les/zx;",
            ">;)V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Les/cy$e;->c:Les/cy;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 p1, 0x0

    .line 2
    iput-boolean p1, p0, Les/cy$e;->b:Z

    .line 3
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1, p2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    iput-object p1, p0, Les/cy$e;->a:Ljava/util/ArrayList;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Les/cy$e;->b:Z

    return-void
.end method

.method public run()V
    .locals 13

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    const/4 v3, 0x0

    .line 2
    :goto_0
    iget-object v4, p0, Les/cy$e;->a:Ljava/util/ArrayList;

    invoke-virtual {v4}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ge v3, v4, :cond_4

    .line 3
    iget-object v4, p0, Les/cy$e;->a:Ljava/util/ArrayList;

    invoke-virtual {v4, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/by;

    .line 4
    invoke-virtual {v4}, Les/by;->a()Ljava/lang/String;

    move-result-object v4

    .line 5
    new-instance v5, Les/cy$g;

    invoke-direct {v5}, Les/cy$g;-><init>()V

    .line 6
    iput-object v4, v5, Les/cy$g;->a:Ljava/lang/String;

    .line 7
    invoke-static {v4}, Lcom/estrongs/android/util/h0;->t2(Ljava/lang/String;)Z

    move-result v6

    const/4 v7, 0x2

    const/4 v8, 0x1

    if-eqz v6, :cond_2

    new-array v6, v7, [J

    const-wide/16 v9, 0x0

    aput-wide v9, v6, v2

    aput-wide v9, v6, v8
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 8
    :try_start_1
    invoke-static {v4}, Lcom/estrongs/fs/impl/usb/e;->i(Ljava/lang/String;)[J

    move-result-object v6
    :try_end_1
    .catch Lcom/estrongs/fs/impl/usb/UsbFsException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_1

    :catch_0
    move-exception v7

    .line 9
    :try_start_2
    iget-object v9, v7, Lcom/estrongs/fs/impl/usb/UsbFsException;->errorCode:Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;

    sget-object v10, Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;->USB_ERROR_TYPE_NOT_SUPPORTED:Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;

    if-ne v9, v10, :cond_0

    .line 10
    new-instance v1, Les/cy$e$a;

    invoke-direct {v1, p0, v5}, Les/cy$e$a;-><init>(Les/cy$e;Les/cy$g;)V

    invoke-static {v1}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Runnable;)V

    .line 11
    iget-object v1, p0, Les/cy$e;->c:Les/cy;

    invoke-static {v1}, Les/cy;->f(Les/cy;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    .line 12
    :try_start_3
    iget-object v2, p0, Les/cy$e;->c:Les/cy;

    invoke-static {v2, v0}, Les/cy;->a(Les/cy;Les/cy$e;)Les/cy$e;

    .line 13
    monitor-exit v1

    return-void

    :catchall_0
    move-exception v2

    monitor-exit v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :try_start_4
    throw v2

    .line 14
    :cond_0
    iget-object v7, v7, Lcom/estrongs/fs/impl/usb/UsbFsException;->errorCode:Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;

    sget-object v9, Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;->USB_ERROR_INIT_FAIL:Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;

    if-ne v7, v9, :cond_1

    goto :goto_1

    .line 15
    :cond_1
    sget-object v7, Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;->USB_ERROR_MISSING_PERMISSION:Lcom/estrongs/fs/impl/usb/UsbFsException$ERROR_CODE;

    .line 16
    :goto_1
    aget-wide v9, v6, v8

    aget-wide v11, v6, v2

    sub-long/2addr v9, v11

    iput-wide v9, v5, Les/cy$g;->b:J

    .line 17
    aget-wide v7, v6, v8

    iput-wide v7, v5, Les/cy$g;->c:J

    goto :goto_2

    .line 18
    :cond_2
    invoke-static {v4}, Lcom/estrongs/fs/util/f;->h(Ljava/lang/String;)[J

    move-result-object v6

    .line 19
    aget-wide v9, v6, v2

    aget-wide v11, v6, v8

    sub-long/2addr v9, v11

    aget-wide v11, v6, v7

    mul-long v9, v9, v11

    iput-wide v9, v5, Les/cy$g;->b:J

    .line 20
    aget-wide v8, v6, v2

    aget-wide v10, v6, v7

    mul-long v8, v8, v10

    iput-wide v8, v5, Les/cy$g;->c:J

    .line 21
    :goto_2
    iget-boolean v6, p0, Les/cy$e;->b:Z

    if-eqz v6, :cond_3

    return-void

    .line 22
    :cond_3
    invoke-static {v4, v1}, Lcom/estrongs/android/util/h0;->i(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v4

    .line 23
    new-instance v6, Les/cy$e$b;

    invoke-direct {v6, p0, v5, v4}, Les/cy$e$b;-><init>(Les/cy$e;Les/cy$g;Z)V

    invoke-static {v6}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Runnable;)V

    add-int/lit8 v3, v3, 0x1

    goto/16 :goto_0

    .line 24
    :cond_4
    iget-object v1, p0, Les/cy$e;->c:Les/cy;

    invoke-static {v1}, Les/cy;->f(Les/cy;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1

    .line 25
    :try_start_5
    iget-object v2, p0, Les/cy$e;->c:Les/cy;

    invoke-static {v2, v0}, Les/cy;->a(Les/cy;Les/cy$e;)Les/cy$e;

    .line 26
    monitor-exit v1

    goto :goto_3

    :catchall_1
    move-exception v2

    monitor-exit v1
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    :try_start_6
    throw v2
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_1

    .line 27
    :catch_1
    iget-object v1, p0, Les/cy$e;->c:Les/cy;

    invoke-static {v1}, Les/cy;->f(Les/cy;)Ljava/lang/Object;

    move-result-object v1

    monitor-enter v1

    .line 28
    :try_start_7
    iget-object v2, p0, Les/cy$e;->c:Les/cy;

    invoke-static {v2, v0}, Les/cy;->a(Les/cy;Les/cy$e;)Les/cy$e;

    .line 29
    monitor-exit v1

    :goto_3
    return-void

    :catchall_2
    move-exception v0

    monitor-exit v1
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_2

    goto :goto_5

    :goto_4
    throw v0

    :goto_5
    goto :goto_4
.end method
